#ifndef HSERVER_H
#define HSERVER_H

#include <QMainWindow>
#include <QTcpServer>

QT_BEGIN_NAMESPACE
namespace Ui { class HServer; }
QT_END_NAMESPACE

class HServer : public QMainWindow
{
    Q_OBJECT

public:
    HServer(QWidget *parent = nullptr);
    ~HServer();

protected slots:
    void new_client();
    void read_data();
protected slots:
    void new_client();
    void read_data();

private:
    Ui::HServer *ui;
    QTcpServer mserver;
    QTcpSocket *msocket;
    void on_startBt_clicked();

    void on_clearBt_clicked();

    void on_sendBt_clicked();
};
#endif // HSERVER_H
